<?php
header('Content-Type:text/html;charset=utf-8');
session_start();
require_once './config/sys_config.php';
require_once MB_CONF_DIR  . '/user_config.php';
require_once MB_APP_DIR   . '/global.class.php';
require_once MB_MODEL_DIR . '/oauth.class.php';
require_once MB_MODEL_DIR . '/opent.class.php';
require_once MB_MODEL_DIR . '/api_client.class.php';

echo "Start<br>";
//设置logger
$logger = new MBLog($mbConfig["log_path"], "test", true);
MBGlobal::setLogger($logger);

$c = new MBApiClient(MB_AKEY, MB_SKEY, MB_ADMIN_OAUTH_TOKEN, MB_ADMIN_OAUTH_TOKEN_SECRET);
//拉取广播大厅消息
$p =array(
	'p' => 0,
	'n' => 20
);
$public_timeline_arr = $c->getPublic($p);
var_dump($public_timeline_arr);
var_dump($public_timeline_arr[data][info]);
echo "End<br>";
?>
